import messageBox from "./messageBox";

export default {
    install:function(Vue){
        const MsgBox=Vue.extend(messageBox);
        window.showMsg=Vue.prototype.$showMsg=function(msg="默认值"){
            let Msg=new MsgBox();
            Msg.msg=msg;
            Msg.$mount();
            document.body.appendChild(Msg.$el);
        }
    }
}